export const parseMarks = (mData) => {
  const dataMap = {}
  mData &&
    mData &&
    mData.forEach((item) => {
      switch (item.biaoshi) {
        case 'zzp':
          dataMap['wips'] = item['list']
          break
        case 'cailiao':
          dataMap['materials'] = item['list']
          break
        case 'baojian':
          dataMap['inspectionApplication'] = item['list']
          break
        case 'jianyan':
          dataMap['inspectionSheet'] = item['list']
          break
        case 'product':
          dataMap['product'] = item['list']
          break
      }
      if (item.baishi) {
        switch (item.baishi) {
          case 'baojian':
            dataMap['inspectionApplication'] = item['list']
            break
          case 'jianyan':
            dataMap['inspectionSheet'] = item['list']
            break
        }
      }
    })
  return dataMap
}
